package com.gitee.wsl.coroutines.job.sheduler

import com.gitee.wsl.coroutines.job.exception.SchedulerException


interface ISchedulerFactory {
    @get:Throws(SchedulerException::class)
    val scheduler: IScheduler?

    /**
     * Returns a handle to the Scheduler with the given name, if it exists.
     */
    @Throws(SchedulerException::class)
    fun getScheduler(schedName: String): IScheduler?

    @get:Throws(SchedulerException::class)
    val allSchedulers: List<IScheduler>
}
